package com.zhiyou.brank.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.zhiyou.model.FYDuty;

public interface FlyDuty {
	/**
	 * 根据星期id和班班级id查询值班情况
	 * @param week
	 * @param class_id
	 * @return
	 */
	public List<FYDuty> selectDutyOne(@Param("week_id")Integer week_id,@Param("class_id")Integer class_id);
	/**
	 * 根据星期id和班班级id查询值日生
	 * @param week_id
	 * @param class_id
	 * @return
	 */
	public List<FYDuty> selectDutyTwo(@Param("week_id")Integer week_id,@Param("class_id")Integer class_id);
	/**
	 * 添加值日模块信息
	 * @param teacher_id
	 * @param teacher_class_id
	 * @param student_id
	 * @param week
	 * @param class_id
	 * @param week_id
	 */
	public void addDuty(@Param("teacher_id")Integer teacher_id,@Param("teacher_class_id")Integer teacher_class_id,			
			@Param("student_id")Integer student_id,@Param("week")String week,@Param("class_id")Integer class_id,
			@Param("week_id")Integer week_id);
	/**
	 * 修改值日模块信息
	 * @param teacher_id
	 * @param teacher_class_id
	 * @param student_id
	 * @param week
	 * @param class_id
	 * @param week_id
	 */
	public void updateDuty(@Param("teacher_id")Integer teacher_id,@Param("teacher_class_id")Integer teacher_class_id,			
			@Param("student_id")Integer student_id,@Param("week")String week,@Param("class_id")Integer class_id,
			@Param("week_id")Integer week_id,@Param("duty_id")Integer duty_id);
	/**
	 * 根据id删除
	 * @param duty_id
	 */
	public void deleteDuty(Integer duty_id);
}
